package com.jumper.study.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jumper.study.db.dto.StudentStudyLogDto;
import com.jumper.study.db.dto.StudentStudyLogSearchDto;
import com.jumper.study.db.dto.StudyTimeDto;
import com.jumper.study.db.model.StudentStudyLog;

public interface StudentStudyLogMapper extends BaseMapper<StudentStudyLog> {
    //分页搜索学员学习日志
    IPage<StudentStudyLogDto> pageSearchWithAccountAndChapter(IPage<StudentStudyLogDto> page, StudentStudyLogSearchDto search);

    //查询学员本门课学习总时长
    StudyTimeDto selectStudyTimes(Long accountId, Long lessonId);
}
